package com.collections;

/**
 * 移位运算
 * @author David
 *
 */
public class ShiftOperationTest {

	static int a = 5;
	
	public static void main(String[] args){
		int b = a>>2;
		int c = a<<3;
		int d = a>>>2;//无符号右移，左边补0
		System.out.println(b);
		System.out.println(c);
		System.out.println(d);
	}
}
